package com.itheima.cart;

import com.itheima.api.config.FeignConfig;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

/**
 * Hello world!
 *
 */
//扫描feign所在的包
@EnableFeignClients(
        basePackages = "com.itheima.api.client",
        defaultConfiguration = FeignConfig.class
)
@SpringBootApplication
@MapperScan("com.itheima.cart.mapper")
public class CartApp
{
    public static void main( String[] args )
    {
        SpringApplication.run(CartApp.class);
    }

/*@Bean
   public  RestTemplate restTemplate(){
        return new RestTemplate();
   }*/
}
